import static org.junit.Assert.*;

import java.awt.event.ActionEvent;

import org.junit.Test;

import fi.iki.jka.JPhotoCollection;
import fi.iki.jka.JPhotoFrame;
import fi.iki.jka.JPhotoMenu;


public class JPhotoFrameTest {

	
	
	@Test
	public void test() {
	
		String frameName = "photos";
		String names = "C:\\Users\\Public\\Pictures\\Sample Pictures\\Desert.jpg";
		JPhotoCollection files = new JPhotoCollection(names);
		JPhotoFrame testFrame;
		try {
			testFrame = new JPhotoFrame(frameName, (JPhotoCollection) files);
			testFrame.actionPerformed(new ActionEvent(null, 0,JPhotoMenu.A_SLIDESHOW));
			assert ! testFrame.flagSlide;
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	
		//fail("Not yet implemented");
	}

}
